@font-face {
  font-family: izvestija;
  src: url(../fonts/izvestija.ttf);
}
@font-face {
  font-family: Raleway, sans-serif;
  src: url("../fonts/Raleway/Raleway-Regular.woff2"),
  url("../fonts/Raleway/Raleway-Regular.woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Montserrat, sans-serif;
  src: url("../fonts/Montserrat/Montserrat-Regular.woff2"),
  url("../fonts/Montserrat/Montserrat-Regular.woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Roboto, sans-serif;
  src: url("../fonts/Roboto/Roboto-Regular.woff2"),
  url("../fonts/Roboto/Roboto-Regular.woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box; }

h1 {
  margin: 0 auto;
  font-family: Montserrat, sans-serif;
  font-size: 30px;
  text-align: center;
  text-transform: uppercase;
}

h2  {
  font-family: Raleway, sans-serif;
  font-size: 20px;
  color: black;
}

.header {
  background-color: #f5f5f5;
  &-wrp {
    max-width: 1280px;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
  }
}

.menu-top {
  max-width: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  & p {
    display: none;
    margin: 0;
    padding: 0 5px;
    color: #ffffff;
    background-color: crimson;
  }
}

label,
#menu {
  display: none;
}

.header-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  & li {
    list-style: none;
    padding: 0 8px;
    & a {
      font-family: Montserrat, sans-serif;
      font-size: 20px;
      line-height: 1.2;
      font-weight: 600;
      color: black;
      text-decoration: none;
      &:hover {
        color: #cccccc;
      }
    }
  }
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  &-txt {
    font-family: izvestija, arial, sans-serif;
    font-size: 60px;
    line-height: 1.2;
    letter-spacing: 10px;
    color: darkred;
    text-shadow: 4px 4px 4px #aaa;
    &:hover {
      color: red;
      text-shadow: 4px 8px 8px #aaa;
    }
  }
}

.header-contacts {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  & .header-adr {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    text-decoration: none;
    color: black;
    &:hover {
      color: #cccccc;
    }
  }
  & .work-clock {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    text-decoration: none;
    color: black;
  }
  &-wrp {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  & .email {
    padding: 0;
    display: flex;
    align-items: center;
    color: black;
    outline: none;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    min-height: 19px;
    &-svg {
      padding-right: 5px;
    }
    &:hover {
      filter: opacity(0.3);
    }
  }
}

.telegram {
  text-decoration: none;
  font-size: 0;
  &-svg {
    fill: #039be5;
  }
  &-svg:hover {
    fill: #cccccc;
  }
}

.header-phone {
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: black;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  & a {
    margin-left: 5px;
    text-decoration: none;
    color: black;
  }
  & a:before {
    content: "\260e";
    margin-right: 0.5em;
  }
  & a:hover {
    color: #ccc;
  }
}

.aside {
  display: none;
  width: 100%;
  max-height: 960px;
  padding-top: 56.25%;
  padding-bottom: 1%;
  background-image: url(../img/newyear.jpeg);
  background-size: 100%;
  background-repeat: no-repeat;
}

.slider {
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  &-wrp {
    width: 100%;
    height: 100%;
    animation: slider-anim 12s linear infinite both;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    &:before {
      content: "";
      position: absolute;
      max-width: 90%;
      top: 15%;
      margin: 0 auto;
      color: white;
      font-family: Montserrat, sans-serif;
      font-size: 40px;
      font-weight: 600;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: 2px;
      line-height: 120%;
      animation: wrp-anim-before 12s linear infinite;
    }
    &:hover:before {
      animation-play-state: paused;
    }
    &:after {
      content: "";
      width: 90%;
      position: absolute;
      bottom: 15%;
      margin: 0 auto;
      color: white;
      font-family: Raleway, sans-serif;
      font-size: 24px;
      text-align: center;
      text-transform: uppercase;
      animation: wrp-anim-after 12s linear infinite;
    }
  }
}
@keyframes slider-anim {
  0% {
    background-image: url(../img/slider1.jpg);
    background-size: cover;
  }
  50% {
    background-image: url(../img/slider2.jpg);
    background-size: cover;
  }
  100% {
    background-image: url(../img/slider3.jpg);
    background-size: cover;
  }
}
@keyframes wrp-anim-before {
  0% {
    content: "Квалифицированный ремонт оргтехники";
  }
  50% {
    content: "Заправка картриджей";
  }
  100% {
    content: "СНПЧ. Установка. Ремонт";
  }
}
@keyframes wrp-anim-after {
  0% {
    content: "с гарантией и доставкой в офис за наш счёт";
  }
  50% {
    content: "производим заправку картриджей для всех моделей принтеров";
  }
  100% {
    content: "осуществляем ремонт струйных принтеров.";
  }
}

.button {
  max-width: 300px;
  max-height: 53px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 5px;
  border: none;
  outline: none;
  font-family: Raleway, sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  //line-height: 23px;
  font-weight: 600;
  text-transform: uppercase;
  color: black;
  position: relative;
  animation: button-anim 12s linear infinite;
  &:hover {
    background-color: #039be5;
    color: white;
  }
}

.services {
  background-color: #f5f5f5;
  width: 100%;
  padding: 50px 0 30px 0;
  & h1 {
    margin: 0;
    padding: 0 0 20px 0;
    color: black;
    font-family: Montserrat, sans-serif;
    font-size: 30px;
    text-align: center;
    text-transform: uppercase;
  }
  &-wrp {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

.services-item {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px ;
  & h2 {
    margin: 10px auto 10px;
    min-height: 60px;
    font-family: Raleway, sans-serif;
    font-size: 24px;
    text-align: center;
  }
  & p {
    margin: 0 auto;
    min-height: 76px;
    font-family: Montserrat, sans-serif, sans-serif;
    font-size: 16px;
    text-align: center;
  }
  &:after {
    margin: 10px 0 0 0;
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background-color: #cccccc;
  }
}

.discount {
  width: 100%;
  min-height: 500px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  &:before {
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url("../img/discount.jpg");
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    filter: brightness(0.6);
  }
  & h1 {
    position: relative;
    max-width: 950px;
    color: white;
    font-family: Montserrat, sans-serif;
    font-size: 40px;
    text-align: center;
    text-transform: uppercase;
  }
  & span {
    position: relative;
    color: white;
    font-family: Raleway, sans-serif;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
  }
  & button {
    position: relative;
  }
}

.faqs {
  padding: 50px 40px;
  background-color: #3b3b47;
  color: white;
  &-wrp {
    max-width: 920px;
    margin: 40px auto 0;
    padding: 0 20px 0 120px;
    border: solid 1px white;
    border-radius: 10px;
    font-family: Raleway, sans-serif;
    position: relative;
  }
  h3:before {
    position: absolute;
    left: 30px;
    content: "Клиент:"
  }
  p:before {
    position: absolute;
    left: 30px;
    content: "Сервис:"
  }
}

.works {
  background-color: #f5f5f5;
  width: 100%;
  padding: 50px 0 40px 0;
  & h1 {
    margin: 0 auto;
    padding: 0 0 40px 0;
    color: black;
    font-family: Montserrat, sans-serif;
    font-size: 30px;
    text-align: center;
    text-transform: uppercase;
  }
  & ol {
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    list-style-type: none;
    counter-reset: num;
    box-sizing: border-box;
  }

  & ol li:nth-child(odd),
    ol li:nth-child(even) {
    position: relative;
    & h2 {
      margin: 3px 0 0;
      font-family: Raleway, sans-serif;
      font-size: 24px;
    }
    & span {
      display: block;
      font-family: Montserrat, sans-serif;
      font-size: 16px;
      box-sizing: border-box;
    }
    &:after {
      position: absolute;
      left: calc(50% - 21px);
      top: 0;
      content: counter(num);
      counter-increment: num;
      font-family: Montserrat, sans-serif;
      font-size: 24px;
      width: 30px;
      height: 30px;
      background: #000;
      color: white;
      border-radius: 50%;
      border: 1px solid #000;
      text-align: center;
      font-weight: 700;
      padding: 5px;
    }
  }
  & ol li:nth-child(odd) {
    padding-right: calc(50% - 1px);
    display: flex;
    flex-direction: column;
    justify-content: right;
    text-align: right;
    & h2 {
      text-align: right;
      padding: 3px 80px 10px 0;
    }
    & span {
      text-align: right;
      padding: 0 70px 18px 0;
      border-right: 2px solid #000000;
    }
  }
  & ol li:nth-child(even) {
    text-align: left;
    padding-left: calc(50% - 1px);
    & h2 {
      text-align: left;
      padding: 5px 0 10px 70px;
    }
    & span {
      text-align: left;
      padding: 0 0 20px 70px;
      margin-bottom: 3px;
      border-left: 2px solid #000000;
    }
  }
  & ol li:last-child {
    & span {
      border: none;
    }
  }
}

.documents {
  padding: 50px 40px;
  background-color: #3b3b47;
  color: white;
  &-wrp {
    margin: 40px auto 0;
    max-width: 920px;
    //margin-top: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  &-left {
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    & a {
      padding: 10px 0;
      font-family: Raleway, sans-serif;
      font-size: 20px;
      color: white;
      text-decoration: none;
      &:hover {
        color: #cccccc;
      }
    }
  }
  &-right {
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    & a {
      padding: 10px 0;
      font-family: Raleway, sans-serif;
      font-size: 20px;
      color: white;
      text-decoration: none;
      &:hover {
        color: #cccccc;
      }
    }
  }
}

.prices {
  display: none;
}

.contacts {
  background-color: #f5f5f5;
  &-wrp {
    display: flex;
    flex-wrap: wrap;
  }
  & .script {
    width: 50%;
    min-height: 500px;
  }
  &-txt {
    padding-left: 50px;
    width: 45%;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;
    & a[href^="tel:"] {
      margin: 0;
      text-decoration: none;
      color: black;
      font-family: Montserrat, sans-serif;
      font-size: 24px;
      line-height: 1.2;
    }
    & a[href^="tel:"]:before {
      content: "\260e";
      margin-right: 0.5em;
    }
    & a:hover {
      color: #ccc;
    }
  }

  & h1 {
    margin: 40px 0;
    text-align: left;
  }
  & .contact-telegram {
    text-decoration: none;
    font-size: 24px;
    line-height: 1.2;
    padding-top: 15px;
    font: 24px/18px Tahoma,sans-serif,Arial,Helvetica;
    color: #28a7e8; }
  & .contact-telegram:before {
    display: inline-block;
    width: 26px;
    height: 26px;
    content: '';
    background: url(../img/telegram_2019_Logo.svg) no-repeat 50% 50%;
    margin: 0 0.3em -0.2em 0; }
  & .contact-telegram:hover:before {
    filter: brightness(1.4);
  }

  & .email {
    padding: 16px 0;
    font: 24px/18px Tahoma,sans-serif,Arial,Helvetica;
    color: #28a7e8;
    text-decoration: none;
    &:before {
      display: inline-block;
      width: 26px;
      height: 26px;
      content: '';
      background: url(../img/envelope.svg) no-repeat 50% 50%;
      margin: 0 0.7em -0.2em 0;
    }
    &:hover:before {
      filter: brightness(1.4);
    }
  }
  & span {
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    line-height: 1.2;
  }
  & p {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    line-height: 1.2;
  }
  & .work-clock {
    font-size: 16px;
  }
}

.footer {
  padding: 20px;
  background-color: #3b3b47;
  display: flex;
  justify-content: space-between;
  & a {
    text-decoration: none;
    color: #999999;
  }
  & a:hover {
    color: white;
  }
  & span {
    color: white;
  }
  & a:hover span {
    color: #999999;
  }
}

@media only screen and (max-width: 1050px) {
  .contacts-wrp {
    width: 100%;
  }
  .logo,
  .header-contacts {
    width: 40%;
  }
  .menu-top,
  .header-phone {
    width: 60%;
  }
  .header-phone {
    flex-direction: row;
    & a {
      margin: 0 30px;
    }
  }
  .contacts .script {
    display: block;
    width: 100%;
  }
  .contacts-txt {
    width: 100%;
    padding: 0 40px 50px;
    & h1 {
      margin: 0 auto;
      padding: 40px;
    }
  }
}

@media only screen and (max-width: 720px) {
  h1 {
    font-size: 30px;
  }

  .header-wrp {
    padding: 10px 0;
  }

  .menu-top {
    width: 100%;
  }

  .slider {
    max-height: 360px;
    & img {
      min-height: 100%;
    }
    &-wrp {
      max-width: 100%;
      height: 100%;
    }
    &:before {
      font-size: 34px;
    }
    &:after {
      //max-width: 90%;
      font-size: 18px;
      font-weight: normal;
    }
  }

  .services h1 {
    padding: 0;
  }
  .services-wrp {
    justify-content: center;
  }

  .discount {
    display: none;
    min-height: 360px;
  }
  .discount h1 {
    font-size: 30px;
  }

  .works ol li:nth-child(odd) h2 {
    padding: 3px 30px 10px 0;
  }
  .works ol li:nth-child(odd) span {
    padding: 0 25px 18px 0;
  }
  .works ol li:nth-child(even) h2 {
    padding: 5px 0 10px 30px;
  }
  .works ol li:nth-child(even) span {
    padding: 0 0 20px 30px;
  }

  .documents-wrp {
    justify-content: center;
  }
  .documents-left,
  .documents-right {
    align-items: center;
  }
}

@media only screen and (max-width: 480px) {
  .header-wrp {
    flex-direction: column;
  }
  .header-contacts {
    align-items: center;
  }
  .header-phone {
    margin: 10px auto 0;
  }

  .slider {
    max-height: 260px;
  }
  .slider-wrp:before {
    font-size: 19px;
  }
  .slider-wrp:after {
    font-size: 16px;
    font-weight: normal;
  }

  .works ol li:nth-child(odd),
  .works ol li:nth-child(even) {
    text-align: left;
    padding: 0;
    & h2 {
      padding: 3px 30px 10px 60px;
      text-align: left;
      font-size: 20px;
    }
    & span {
      margin-left: 30px;
      padding: 0 25px 18px 40px;
      text-align: left;
      border: none;
      border-left: 2px solid #000000;
    }
  }
  .works ol li:last-child span {
    border: none;
  }
  .works ol li:nth-child(odd):after,
  .works ol li:nth-child(even):after {
    left: 10px;
  }

  .contacts {
    //max-height: 300px;
  }
  .contacts-txt {
    padding: 0 10px 50px;
  }
  .copyright a {
    font-family: Raleway sans-serif;
    font-size: 10px;
  }
  .script {
    height: 300px;
  }
}
